package com.graduate.emos.wx.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel
@Data
public class TestSayHelloForm {
    @NotBlank       //表示不能为空且不能为空白字符
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,16}$")
    @ApiModelProperty("姓名")  //参数的描述
    private String name;
}
